package com.sugar.psych.assessment.module.business.controller.admin.userpointsrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 用户积分记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserPointsRecordRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6703")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27058")
    @ExcelIgnore
    private Long userId;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "27058")
    @ExcelProperty("用户昵称")
    private String nickname;

    @Schema(description = "用户手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27058")
    @ExcelProperty("用户手机号")
    private String mobile;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "积分变动分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("积分变动分类")
    private String cls;

    @Schema(description = "变动类型（0减 1增）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("变动类型（0减 1增）")
    private Boolean type;

    @Schema(description = "积分变动数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("积分变动数量")
    private Integer obtainedPoints;

    @Schema(description = "记录时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("记录时间")
    private LocalDateTime recordTime;

    @Schema(description = "积分变动后，用户剩余总积分", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("积分变动后，用户剩余总积分")
    private Integer totalPoints;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}